<div class="bjui-pageContent">
    <form action="<empty name="Detail">{:U('Formguide/add')}
        <else />{:U('Formguide/edit?id='.$Detail['id'])}</empty>" id="j_custom_form" data-toggle="validate" data-alertmsg="false">
        <table class="table table-condensed table-hover" width="100%">
            <tbody>
                <tr>
                    <th style="width:100px;display: block;"><strong>
                            <?php echo L('name')?>：</strong></th>
                    <td><input name="info[name]" id="name" class="input-text" type="text" size="30"></td>
                </tr>
                <tr>
                    <th><strong>
                            <?php echo L('tablename')?>：</strong></th>
                    <td><input name="info[tablename]" id="tablename" data-rule="required;remote[get:{:U('Formguide/ajax_checkModelTableName')}]"  class="input-text" type="text" size="25"></td>
                </tr>
                <tr>
                    <th><strong>
                            <?php echo L('introduction')?>：</strong></th>
                    <td><textarea name="info[description]" id="description"></textarea></td>
                </tr>
                <tr>
                    <th><strong>
                            <?php echo L('allowed_send_mail')?>：</strong></th>
                    <td><input name="setting[sendmail]" type="radio" value="1">&nbsp;
                        <?php echo L('yes')?>&nbsp;&nbsp;<input name="setting[sendmail]" type="radio" value="0" checked>&nbsp;
                        <?php echo L('no')?>
                    </td>
                </tr>
                <tr id="mailaddress" style="display:none;">
                    <th><strong>
                            <?php echo L('e-mail_address')?>：</strong></th>
                    <td><input type="text" name="setting[mails]" id="mails" class="input-text" size="50">
                        <?php echo L('multiple_with_commas')?>
                    </td>
                </tr>
                <tr>
                    <th><strong>
                            <?php echo L('allows_more_ip')?>：</strong></th>
                    <td><input type='radio' name='setting[allowmultisubmit]' value='1' <?php if($this->M['allowmultisubmit'] == 1) {?>checked
                        <?php }?>>
                        <?php echo L('yes')?>&nbsp;&nbsp;&nbsp;&nbsp;
                        <input type='radio' name='setting[allowmultisubmit]' value='0' <?php if($this->M['allowmultisubmit'] == 0) {?>checked
                        <?php }?>>
                        <?php echo L('no')?>
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li><button type="button" class="btn-close" data-icon="close">取消</button></li>
        <li><button type="submit" class="btn-default" data-icon="save">保存</button></li>
    </ul>
</div>